/**
 * Created with IntelliJ IDEA.
 * User: 花海
 * Date: 2022-08-09
 * Time: 16:19
 */
public class Base {
    int x;
    int y;

}
class Sub extends Base{
    int z=0;
    Sub(int x,int y,int z){
        this.x=x;
        this.y=y;
        this.z=z;
    }
    public int calculate(){
        return x*y*z;
    }

    public static void main(String[] args) {
        Sub su=new Sub(2,3,4);

        System.out.println(su.calculate());
    }

}
